package cn.com.open.itembank.dto;


import cn.com.open.itembank.common.BaseModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lucky on 2018/1/3.
 */
public class RulePartModel extends BaseModel {
    public RulePartModel() {
        this.isListening = false;
        this.expectedTime = 0;
        this.checkTime = 0;
        this.instruction = null;
    }

    /**
     * 是否听力
     */
    private boolean isListening;

    /**
     * 期望答题总时间
     */
    private Integer expectedTime;

    /**
     * 最大时间
     */

    private Integer maxTime;

    /**
     * 最小时间
     */
    private Integer minTime;

    /**
     * 模块检查时间
     */
    private Integer checkTime;

    /**
     * 听力题说明信息
     */
    private List<InstructionModel> instruction;

    /**
     * Is listening boolean.
     *
     * @return the boolean
     */
    public boolean isListening() {
        return isListening;
    }

    /**
     * Sets listening.
     *
     * @param listening the listening
     */
    public void setListening(boolean listening) {
        isListening = listening;
    }

    /**
     * Gets instruction.
     *
     * @return the instruction
     */
    public List<InstructionModel> getInstruction() {
        if (instruction == null) {
            instruction = new ArrayList<>();
        }

        return instruction;
    }

    /**
     * Gets expected time.
     *
     * @return the expected time
     */
    public Integer getExpectedTime() {
        return expectedTime;
    }

    /**
     * Sets expected time.
     *
     * @param expectedTime the expected time
     */
    public void setExpectedTime(Integer expectedTime) {
        this.expectedTime = expectedTime;
    }

    /**
     * Gets check time.
     *
     * @return the check time
     */
    public Integer getCheckTime() {
        return checkTime;
    }

    /**
     * Sets check time.
     *
     * @param checkTime the check time
     */
    public void setCheckTime(Integer checkTime) {
        this.checkTime = checkTime;
    }

    public Integer getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Integer maxTime) {
        this.maxTime = maxTime;
    }

    public Integer getMinTime() {
        return minTime;
    }

    public void setMinTime(Integer minTime) {
        this.minTime = minTime;
    }
}
